package com.example.demo.jvm;

import java.util.ArrayList;
import java.util.List;

public class FanXing {

    // 编译期会帮忙校验 泛型
    public void inspect(List<? extends Object> list) {
    }
    public void test() {
        List<String> strs = new ArrayList<String>();
        inspect(strs); // 编译错误
    }

}
